<?php

require 'includes/tmhOAuth.php';
require 'includes/tmhUtilities.php';
$tmhOAuth = new tmhOAuth(array(
		'consumer_key' => 'WTlW9As6PXorbw0VTTtkpQ',
		'consumer_secret' => 'cuCzAKx7uKCrr7LAd5sY7ny2oB6ynziOBMEyyNH4TnU',
		'user_token' => '588537930-UdBK481RtA9ZD38NwfwHPOrScyLFOlZIFiWy4mxi',
		'user_secret' => '68Ylsj6SIZmSua24zHeeh2BM0xii5XAMVQBrfP4vI',
));

$code = $tmhOAuth->request('POST', $tmhOAuth->url('1/statuses/update'), array(
  'status' => 'On compte les jours sur le bout des pieds'
));

if ($code == 200) {
  tmhUtilities::pr(json_decode($tmhOAuth->response['response']));
} else {
  tmhUtilities::pr($tmhOAuth->response['response']);
}

?>